﻿/*
  +++++++++++++++++++++++++++++++++++++++++++
  +  Description: 修改 菜单表
  +  Created by 王大宸 on 2020-02-10 14:08:06
  +  Created with IntelliJ IDEA.
  ++++++++++++++++++++++++++++++++++++++++++++
 */

layui.use(['form'], function () {
    form = layui.form;
    form.render();

    form.on('submit(editSysMenu)', function (data) {
        let editUrl = "/base/menu/" + data.field.id;
        $.http.putAjax(editUrl, data.field, function (res) {
            $.http.res(res, function () {
                parent.initTable();
                parent.parent.initTree();
                layer.alert(res.msg, {title: "系统提示", icon: $.modal.icon(LAYER_STATUS.SUCCESS)}, function () {
                    $.modal.close();
                });
            })
        });
    });

});